/* 树形组件样式 - 重点修复三角形图标与文字对齐 */
.custom-permission-tree .ant-tree-node {
    line-height: 1;
    margin: 2px 0;
}


.custom-permission-tree .ant-checkbox-inner {
    width: 16px !important;
    height: 16px !important;
    border-radius: 3px;
}

/* 文字样式 - 确保与图标基线对齐 */
.custom-permission-tree .ant-tree-title {
    line-height: 16px !important; /* 与图标高度一致 */
    vertical-align: middle !important;
    flex-shrink: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block; /* 确保文字作为块级元素对齐 */
}

/* 层级颜色区分 */
.custom-permission-tree .ant-tree-node:not(.ant-tree-node-leaf) .ant-tree-title {
    font-weight: 500;
    color: #1890ff;
}

.custom-permission-tree .ant-tree-node-leaf .ant-tree-title {
    color: #4e5969;
    font-size: 13px;
}

/* 展开/折叠动画保持居中 */
.ant-tree-iconEle {
    transition: transform 0.2s ease;
}

.ant-tree-iconEle.ant-tree-icon__open {
    transform: rotate(90deg);
}

/* 其他保持不变的样式... */
.permission-modal .ant-modal-content {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border: none;
    overflow: hidden;
}

.permission-modal .ant-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #1d2129;
    padding: 20px 24px;
    border-bottom: 1px solid #f2f3f5;
}

.permission-layout-container {
    display: flex;
    height: 520px;
    padding: 16px 24px;
    gap: 16px;
}

.permission-selection-panel,
.permission-selected-panel {
    display: flex;
    flex-direction: column;
    background-color: #fafafa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.permission-selection-panel {
    flex: 4;
}

.permission-selected-panel {
    flex: 6;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background-color: #fff;
    border-bottom: 1px solid #f2f3f5;
}

.panel-title {
    font-size: 15px;
    font-weight: 500;
    color: #4e5969;
}

.total-count {
    background-color: #f0f2f5;
    color: #86909c;
}

.selected-count {
    background-color: #e6f7ff;
    color: #1890ff;
}

.permission-tree-container {
    flex: 1;
    overflow: auto;
    padding: 16px;
}

.selected-tags-container {
    flex: 1;
    overflow: auto;
    padding: 16px;
}

.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.selected-tag {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    cursor: default;
    transition: all 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.no-selected-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #86909c;
    padding: 20px;
    text-align: center;
}

.no-selected-placeholder p {
    margin: 0;
    font-size: 14px;
}

.placeholder-hint {
    margin-top: 8px !important;
    font-size: 12px;
    color: #c9cdD4;
}

.layout-divider {
    background-color: #f2f3f5;
    width: 2px;
}

.permission-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #f2f3f5;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: #fff;
}

.permission-modal-footer .ant-btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.permission-modal-footer .ant-btn-primary {
    background-color: #1890ff;
    border-color: #1890ff;
}

.permission-modal-footer .ant-btn-primary:hover {
    background-color: #096dd9;
    border-color: #096dd9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.permission-modal-footer .ant-btn-danger {
    background-color: #ff4d4f;
    border-color: #ff4d4f;
}

.permission-modal-footer .ant-btn-danger:hover {
    background-color: #d9363e;
    border-color: #d9363e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
}

.permission-tree-container::-webkit-scrollbar,
.selected-tags-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.permission-tree-container::-webkit-scrollbar-track,
.selected-tags-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.permission-tree-container::-webkit-scrollbar-thumb,
.selected-tags-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.permission-tree-container::-webkit-scrollbar-thumb:hover,
.selected-tags-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

